package com.szpx.service.impl;

import com.szpx.entity.VipInformation;
import com.szpx.mapper.VipInformationMapper;
import com.szpx.service.VipInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class VipInformationServiceImpl implements VipInformationService {

    @Autowired
    private VipInformationMapper vipInformationMapper;

    @Override
    public VipInformation selectVinformationById(Integer id) {
        return vipInformationMapper.selectByPrimaryKey(id);
    }


    @Override
    public List<VipInformation> getListByMation(VipInformation vipInformation) {
        return vipInformationMapper.getListByMation(vipInformation);
    }
}
